﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MonitorModule.Models {

    /// <summary>
    /// 环境信息
    /// </summary>
    public class EnviromentModel
        : INotifyPropertyChanged {
        public event PropertyChangedEventHandler? PropertyChanged;
        /// <summary>
        /// 环境项名称
        /// </summary>
        public string EnItemName { get; set; }

        /// <summary>
        /// 环境项的值
        /// </summary>
        //public int EnItemValue { get; set; }
        private int _EnItemValue;

        public int EnItemValue {
            get { return _EnItemValue; }
            set {
                _EnItemValue = value;
                if (PropertyChanged != null) {
                    PropertyChanged(this, new PropertyChangedEventArgs("EnItemValue"));
                }

            }
        }

    }
}
